/*
** do_s.c for lol in /home/deubel_j//colle
** 
** Made by james deubelbeiss
** Login   <deubel_j@epitech.net>
** 
** Started on  Mon Apr 18 20:28:53 2011 james deubelbeiss
** Last update Mon Apr 18 22:33:52 2011 james deubelbeiss
*/

#include <stdlib.h>
#include "my_mastermind.h"

t_args	*do_s(t_args *ar, char **av, int i)
{
  if (av[i + 1] == NULL)
    return (ar);
  ar->slots = my_atoui(av[i + 1]);
  ar->code = xmalloc(sizeof(char) * (ar->slots + 1));
  return (ar);
}
